Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@tiptap/extension-strike
Advanced tools
@tiptap/extension-strike is an extension for the Tiptap editor that provides functionality for strikethrough text formatting. It allows users to apply and remove strikethrough styling to selected text within the editor.
Add Strikethrough Formatting
This code demonstrates how to add the strikethrough extension to a Tiptap editor instance. The content includes an example of text with strikethrough formatting.
import { Strike } from '@tiptap/extension-strike';
import { Editor } from '@tiptap/core';
const editor = new Editor({
extensions: [
Strike,
],
content: '<p>This is a <s>strikethrough</s> example.</p>',
});
Toggle Strikethrough Formatting
This code shows how to toggle strikethrough formatting on the selected text in the editor. If the selected text already has strikethrough, it will be removed; otherwise, it will be applied.
editor.chain().focus().toggleStrike().run();
The prosemirror-schema-basic package provides a basic schema for ProseMirror, including support for strikethrough formatting. It is more low-level compared to @tiptap/extension-strike and requires more setup to integrate with an editor.
Quill is a rich text editor that includes built-in support for strikethrough formatting. It offers a more comprehensive set of features out of the box compared to @tiptap/extension-strike, which is a more focused extension for Tiptap.
Tiptap is a headless wrapper around ProseMirror – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as New York Times, The Guardian or Atlassian.
Documentation can be found on the Tiptap website.
Tiptap is open sourced software licensed under the MIT license.
FAQs
strike extension for tiptap
We found that @tiptap/extension-strike demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.